package com.sc.design.builder;

import java.util.ArrayList;

public class Director {
    private ArrayList<String> seq = new ArrayList<>();
    private BenzBuilder benzBuilder = new BenzBuilder();
    private BMWBuilder bmwBuilder = new BMWBuilder();

    public BenzModel getBenzModel1(){
        this.seq.clear();
        this.seq.add("engine");
        this.seq.add("start");
        this.benzBuilder.setSeq(this.seq);
        return (BenzModel) this.benzBuilder.getCarModel();
    }
    public BenzModel getBenzModel2(){
        this.seq.clear();
        this.seq.add("engine");
        this.seq.add("stop");
        this.seq.add("start");
        this.benzBuilder.setSeq(this.seq);
        return (BenzModel) this.benzBuilder.getCarModel();
    }

    public BMWModel getBMWModel1(){
        this.seq.clear();
        this.seq.add("engine");
        this.seq.add("stop");
        this.bmwBuilder.setSeq(seq);
        return (BMWModel) this.bmwBuilder.getCarModel();
    }


}
